<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>The Raxan Framework</title>
    <link href="../raxan/styles/master.css" rel="stylesheet" type="text/css" />
    <!--[if IE]><link rel="stylesheet" href="../raxan/styles/master.ie.css" type="text/css" media="screen, projection"><![endif]-->
</head>

<body>

    <div class="container c39">

        <p>&nbsp;</p>
        <h1>The Raxan Framework</h1>
        <hr />

        <div class="column panel c8">
            <div class="pb1"></div><div class="pb2"></div><div class="pm1">
                <h5 class="pnl-header">Table of Content</h5>
                <ul class="hlf-pad">
                    <li><a href="index.html">Overview</a></li>
                    <li><a href="getting-started.html">Getting Started</a></li>
					<li class="lightgray"><a href="your-first-page.html">Your First Page</a></li>
					<li><a href="code-behind.html">Code-Behind Page</a></li>
                    <li><a href="quick-reference-css.html">CSS Framework</a></li>
                    <li><a href="quick-reference-htmlobject.html">Quick Reference</a></li>
                    <li><a href="../css-examples/index.html">Examples</a></li>
					<li><a href="plugins.html">Rich Plugins</a></li>
                    <li><a href="vision.html">The Vision</a></li>
                    <li><a href="roadmap.html">The Roadmap</a></li>
                    <li><a href="credits.html">Credits/Ackns.</a></li>
                </ul>
            </div><div class="pb2 pb3"></div><div class="pb1 pb4"></div>
        </div>

        <div class="column c29 prepend1">
            <h2>Creating Your First Raxan Web Page</h2>

            <p>Creating a web page with Raxan is very simple. You can use any HTML or Text Editor (even Notepad) to create and modify the web pages.</p>

            <p>Let's start off by creating an empty web page called mywebpage.html inside the folder where you have unzipped the library files (e.g. c:\development\raxanfiles). Now open the file mywebpage.html inside your favorite text or html editor to begin editing.</p>

            <p>Normally you would start adding your &lt;html&gt; tags to the page, but to make life a little simpler, we have added a web page template that you can use as a starting point when creating a new page. To copy the content of the page template, use your text or html editor to open the file raxan/templates/page.html, then copy it's content into mywebpage.html.</p>

            <p>Here's the content of the page.html file:</p>

            <pre><code>
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&gt;
    &lt;title&gt;Your Title Here...&lt;/title&gt;
    &lt;link href="raxan/styles/master.css" rel="stylesheet" type="text/css" /&gt;
    &lt;!--[if IE]&gt;
        &lt;link rel="stylesheet" href="raxan/styles/master.ie.css" type="text/css"&gt;
    &lt;![endif]--&gt;
&lt;/head&gt;

&lt;body&gt;
    Put your content here...
&lt;/body&gt;

&lt;/html&gt;
            </code></pre>

            <p>Note: Replace &quot;Your Title Here...&quot; with a title for your page and &quot;Put your content here...&quot; with the html content for the page.</p>

            <p>In the above html code you will notice that there are two &lt;link&gt; tags present within the &lt;head&gt; of the page. This is to include the master.css style sheet (and master.ie.css for Internet Explorer). These files are optional and you can remove them to include your own style sheets but if you would like to take advantage of the CSS framework classes then you will be need to include the master style sheets.</p>

            <p>Copy and paste the following code in your new web page replacing the &quot;Put your content here...&quot; text:</p>

           <pre><code>
    &lt;div&gt;
            My First Raxan web page
    &lt;/div&gt;
            </code></pre>

            <p>Save the file and view it inside your web browser. Note: You can view the file inside a browser by double clicking on the filename in the file folder.</p>

            <p>Viewing the file inside the browser appears flat and normal (without any styling). To change this, modify the code to reflect the following:</p>

           <pre><code>
    &lt;div class="container c30 pad"&gt;
        &lt;h1&gt;My First Raxan web page&lt;/h1&gt;
        &lt;hr /&gt;
    &lt;/div&gt;
            </code></pre>

            <p>Save the file and refresh your browser to see the changes. The page should appear centered with a nice looking title. </p>

            <p>What we have done is to convert the &lt;div&gt; into a container with a width of 30 columns or cells (20*30 = 600 pixel) and a 10 pixel padding around the &lt;div&gt; content.</p>

            <p>Our next step is to add a box with the words &quot;Hello World&quot; inside it. To do this, simply create a div and assign the alert class to it:</p>

            <pre><code>
    &lt;div class="container c30 pad"&gt;
        &lt;h1&gt;My First Raxan web page&lt;/h1&gt;
        &lt;hr /&gt;
        &lt;div class="alert"&gt;
            Hello World!
        &lt;/div&gt;
    &lt;/div&gt;
            </code></pre>

            <p>Save the file and refresh your browser to see the changes.</p>

            <p>To become a bit more creative try modifying your code to reflect the following:</p>

            <pre><code>
    &lt;div class="container c30 success pad"&gt;
        &lt;h1 class="box-title"&gt;My First Raxan web page&lt;/h1&gt;
        &lt;hr /&gt;
        &lt;div class="column alert c10"&gt;
            Hello World!
        &lt;/div&gt;
        &lt;div class="column  info c10"&gt;
            This is my first web page.
        &lt;/div&gt;
        &lt;br class="clear" /&gt;&lt;!-- use to clear the column float --&gt;
    &lt;/div&gt;
            </code></pre>

            <p>We've only created a simple web page with a title and some basic CSS classes. There's no telling what you can do with a little creativity. To learn more about the full list of CSS classes available within the Raxan framework, visit the <a href="quick-reference-css.html#">CSS Framework Quick Reference</a> web page.</p>

            <p><strong>Up Next</strong>: <a href="code-behind.html.html">Creating a Code-Behind Javascript file</a> &gt;</p>

        </div>

        <hr />
        <p class="medium">The Rich Ajax Application Framework. Visit <a href="http://raxanpdi.com">http://raxanpdi.com</a></p>

    </div>

</body>

</html>